<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2017/1/18
  Time: 19:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://"
          + request.getServerName() + ":" + request.getServerPort()
          + path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>任务状态记录</title>
  <link rel="stylesheet" type="text/css" href="<%=basePath%>css/easyui.css" />
  <link rel="stylesheet" type="text/css" href="<%=basePath%>css/icon.css" />
  <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
  <script type="text/javascript" src="<%=basePath%>js/jquery.easyui.min.js"></script>
  <script type="text/javascript" src="<%=basePath%>js/easyui-lang-zh_CN.js"></script>
  <script type="text/javascript" src="<%=basePath%>js/json2.js"></script>
</head>
<body>
<div id="div_toolbar" style="">
      <span style="">
        <label style="color: #313031">任务名：</label>
        <select id="task_name" class="easyui-combobox" editable="false" style="width: 90px" panelHeight=auto></select>
        <a id="select" class="easyui-linkbutton" title="查询" iconCls="icon-search" plain="true">查询</a>
      </span>
</div>
</body>
<script>
  $(function(){
    loadActionType();
    $("#select").bind("click",function(){
      var actionType=$("#task_name option:selected").val();
      var param=({page:page,size:size,actionType:actionType});
      loadPage(param);
    });
  });

  function loadActionType(){
    var combobox= $('#task_name').combobox({
      valueField:'id',
      textField:'action_type'
    });
    $.ajax({
      url: '<%=basePath%>backupRecord/loadActionType',
      type: 'post',
      timeout:20000,
      success:function(res){
        console.log(res.data);
        $('#task_name').combobox('loadData',res.data);
      }
    });

  }

</script>
</html>
